/**
  ******************************************************************************
  * @author Chris
  * @since 2023/2/23 23:37
  *
  * @file     key.h
  * @brief    The project will ...
  *
  * @note     ...
  *
  * @warning  Do not to ...
  ******************************************************************************
  * Change Logs:
  *   Date           Author       Notes
  *   2023/2/23     Chris        the first version
  *
  ******************************************************************************
  */
#ifndef LESSON07_KEY_KEY_H
#define LESSON07_KEY_KEY_H

#include "alientek_sys.h"

#define KEY0  HAL_GPIO_ReadPin(GPIOC, GPIO_PIN_5)
#define KEY1  HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_15)
#define WK_UP HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_0)

#define KEY0_PRESS 1
#define KEY1_PRESS 2
#define WKUP_PRESS 3

void KEY_Init(void);

u8 KEY_Scan(u8 mode);

#endif //LESSON07_KEY_KEY_H
